<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <ul id="imgList">
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
      <li><img src="./1.png" /></li>
    </ul>
  </body>
  <script>
    let oLi = document.getElementsByTagName("li");
    for (let i = 0; i < oLi.length; i++) {
      oLi[i].onmouseover = function () {
        this.className = "current";
      };
      oLi[i].onmouseout = function () {
        this.className = "";
      };
    }
  </script>
  <style>
    * {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    #imgList {
      width: 700px;
      overflow: hidden;
      zoom: 1;
      border: 1px solid #333;
      margin: 0 auto;
      padding: 0 0 10px 10px;
    }
    #imgList li {
      float: left;
      width: 128px;
      height: 128px;
      border: 1px solid #ccc;
      margin: 10px 10px 0 0;
    }
    #imgList li img {
      width: 100%;
      height: 100%;
      float: left;
      opacity: 0.3;
      cursor: crosshair;
      filter: alpha(opacity=30);
    }
    #imgList li.current img {
      opacity: 1;
      filter: alpha(opacity=100);
    }
  </style>
</html>
